Elon Musk has sold his social media platform X (formerly called Twitter) to his own artificial intelligence company, xAI.