Matt Gaetz has denied any wrongdoing, but resigned from Congress almost immediately after Trump nominated him for attorney-general.