Donald Trump has threatened a diesel export ban to tackle rising prices in the United States.