Horst Kohler, a former head of the International Monetary Fund (IMF) who became a popular German president, has died aged 81.