The director general and the UK broadcaster's top news executive quit in a row over the editing of a speech Donald Trump made before protesters attacked the US Capitol in Washington.