A decision not to renew the UK's Trident nuclear submarines could threaten "the survival of our nation", 20 ex-military officials say in a letter to The Times.