Homebuyers in the U.S. canceled about 40,000 purchase agreements during the month of December — a record for any December dating back to at least 2017.