Sony has launched an investigation after a ransomware group claimed to have compromised all systems and offered to sell stolen data.