Americans pulled back sharply from buying new homes in December, but sales for all of 2016 were the highest since 2007.