The Seeds of a Crisis: A Theory of Bank Liquidity and Risk-Taking Over the Business Cycle