Elon Musk has said he is to pull out of his multi-billion dollar Twitter deal just months after he decided to buy the social media platform.