US President Donald Trump has granted a pardon to former Arizona lawman and political ally Joe Arpaio, less than a month after he was convicted of criminal contempt.