Sir John Sawers says Whitehall is “anxious” that “potential prime ministers” lack leadership qualities.