Monopolistic Competition as a Foundation for Keynesian Macroeconomic Models