OpenAI has revealed some of its models went rogue and hacked into another artificial intelligence company in an "unprecedented cyber incident".