Apple has sued OpenAI and former employees for alleged trade secret theft amid escalating tensions between the tech giants.