Britain’s airports and nuclear power stations have been told to tighten their defenses against terrorist attacks in the face of increased threats to electronic security systems.