Donald Trump has rejected calls for his defence secretary Pete Hegseth to resign and said he is ‘doing a great job’.