China is improving its capacity for operations in cyberspace and developing capabilities to use internet for offensive operations, the Pentagon has said.