A Macroeconomic Model of Price Swings in the Housing Market