US President Donald Trump has fired the head of the FBI, James Comey, in the fallout over his probe of Democrat Hillary Clinton's emails last year.