WTO director-general announces surprise resignation amid trying times for trade