Chinese state-sponsored hackers have accessed and collected the communications of a number of US government officials, according to US cyber agencies.