Elon Musk’s artificial intelligence startup xAI launched a Grok app as it seeks to catch up to rivals like Google and OpenAI.