U.S. President Donald Trump has told "confidants," including the head of the Environmental Protection Agency Scott Pruitt, that he plans to leave a landmark international agreement on climate change.