President Trump has blasted the handling of text messages between two former members of the FBI who were once part of the team headed by special counsel Robert Mueller.