The Queen erupted after a 1987 Commonwealth heads of government summit because then PM Mrs Thatcher refused to support actions against South Africa's apartheid regime, files reveal.