A group of investors led by Elon Musk has offered to buy the nonprofit that controls OpenAI for $97.4 billion, escalating a clash between the Tesla chief executive and the artificial intelligence company he co-founded.