US President Donald Trump reacted to the personal attacks launched at him by Tesla and spaceX boss Elon Musk.