Relatively inexpensive areas outside major cities, such as El Dorado County, just east of Sacramento, Calif., and Camden County, N.J., across the river from Philadelphia, are gaining ground with homebuyers as New York City and San Francisco lose steam, according to a report from Redfin, Seattle.