Late Queen said Harry and Meghan's security was 'imperative', letter shows