Artificial intelligence can help some aspects of work, according to a new analysis from the International Monetary Fund, but others could see their jobs replaced.