Queen meets Ruby the sniffer dog during visit to the Home Office, where she tells fellow public servants: "You can't be popular with everyone all the time"