Home prices in 20 major U.S. cities saw an increase in July that was much greater than expected, a new survey said Tuesday.