A four-megaton nuclear bomb has been just one switch away from exploding over the US, newly declassified US document published in the Guardian newspaper reveals.