Former Donald Trump attorney Michael Cohen has begged US President Joe Biden for a presidential pardon before leaving office.