Elon Musk has revealed plans for a stock market flotation of SpaceX that looks set to raise a record sum and could make him the world's first trillionaire.