The UK will buy at least 12 F-35 stealth jets that can carry nuclear warheads in the most significant strengthening of its nuclear capability in a generation, the government has said.