Tesla founder Elon Musk has bought almost a tenth of Twitter shares, worth almost $3bn.