US, China agree to avoid cybertheft