Elon Musk has offered to buy Twitter for $43 billion, according to a filing with the U.S. Securities and Exchange Commission.