Elon Musk said X was hit by a major cyber attack on Monday as outages plagued users of the platform once known as Twitter.