The White House will not rule out pardoning Hillary Clinton for any offences she may have committed over her use of a private email server, after Donald Trump's warning that she would be jailed if he became president.