Four in 10 jobs could be affected by the power of generative AI, according to research by the International Monetary Fund.