The number of homes sold dropped to the lowest in nearly three decades, as prices continued to climb.