US president Donald Trump announced on Twitter on Thursday that he has accepted the resignation of Scott Pruitt, the head of the Environmental Protection Agency (EPA).