The BBC has come under fire over a Panorama documentary that was accused of misleadingly editing a speech by Donald Trump.