A Chinese cyber security firm claimed it had the ability to hack the UK's Foreign Office, leaked documents suggest.