China has installed antiaircraft guns and other weapons on all seven of the artificial islands it built in a disputed part of the South China Sea, a report said, despite Beijing’s pledge not to militarize the islands in the Spratly archipelago.