Donald Trump has sacked Pam Bondi as attorney general, having grown frustrated over her handling of the Epstein files.