President-elect Donald Trump has confirmed that Elon Musk will take on a new government role under his presidency.