Donald Trump has undercut Rudy Giuliani, a former federal prosecutor who the president recently hired to represent him.