Buyers snatched up houses as investment properties and second homes at an especially fast clip last year. The number of…