British officials were involved in the CIA's arrest of two men travelling in Africa, who were later taken to Guantanamo Bay as suspected terrorists, secret telegrams show.