The Managing Director and Chairman of the Board of the International Monetary Fund (IMF) has resigned.