Risk of terror attacks on British soil, warns ex-MI6 boss