BBC director general Tim Davie resigns over Trump documentary edit