Matt Gaetz has withdrawn as Donald Trump’s pick for attorney general following scrutiny over a federal sex trafficking investigation.