OpenAI’s board of directors has formally rejected an offer from a group of investors led by Elon Musk to buy the nonprofit that controls the artificial intelligence company for $97.4 billion.