The Queen was left in the dark for almost a decade over the full scale of the treachery of one of her most senior courtiers, according to newly-released files.