Film star Dirk Bogarde was warned by MI5 that he could be the target of a gay “entrapment” attempt by the KGB, according to newly-declassified intelligence files.