Americans bought more new homes in July