Dame Stella Rimington, who headed the security service from 1992 to 1996, was widely credited as being the model for Dame Judi Dench's M in the James Bond films.