Microsoft has said it is making a multi-year, multibillion-dollar investment in the artificial intelligence (AI) start-up OpenAI the maker of ChatGPT and other tools that can write readable text and generate new images.