A Model of the ERM Crisis