Thatcher fought with unions, Europe and her own party, archive records reveal