Donald Trump has tapped former defence lawyer Pam Bondi for US attorney-general after Matt Gaetz's withdrawal.