Risks to global financial stability are verging on crisis levels, the IMF has warned.