Elon Musk has blamed Ukraine for a massive cyberattack that temporarily took down his social media platform, X, on Monday.