FBI Director Christopher Wray has announced his plans to resign before former President Donald Trump returns to the White House.