Apple Inc.’s lead artificial intelligence researcher for robotics has departed the company to join Meta Platforms Inc.’s competing effort, part of an exodus of AI talent from the iPhone maker.