McKinsey is working to fix issues with its AI system after hackers accessed millions of internal messages and were able to identify sensitive documents, the Financial Times has reported.