Dynamics of the Leverage Cycle