US President Donald Trump on Sunday said he was replacing Defence Secretary Jim Mattis two months earlier than had been expected, a move officials said was driven by Mr Trump's anger at Mr Mattis' resignation letter.