Sacked Foreign Office chief Sir Olly Robbins appeared before MPs to explain his actions in granting Lord Mandelson security clearance.