Donald Trump will not be allowed back on Twitter until after the US midterm elections, the platform's new owner Elon Musk has confirmed.