Dynamics of learning and the financial instability hypothesis