BBC chairman Samir Shah apologised for an ‘error of judgment’ over the editing of a speech by Donald Trump for Panorama.