Singapore has a near-perfect approach to cybersecurity, but many other rich countries have holes in their defenses and some poorer