Endogenous Liquidity and the Business Cycle