Sales of newly built homes surged to the highest level of the year in October, as home builders offered aggressive discounts to buyers.