U.S. Postmaster General Louis DeJoy has resigned after nearly five years in the position.