The US and its allies are accusing hackers connected to the Chinese government of running major hack attacks.