Financialisation and crisis in an agent based macroeconomic model