Dench appeared as ‘M’ over the course of seven Bond films and one other cameo appearance