From nuclear torpedoes to false missile warnings, history reveals how close the world has come to nuclear war.