New home sales inched down in July but still came in higher than expected. Meanwhile, the median price for a new home remained above $400,000 for an eighth straight month.