Resistance to antibiotics could pose a greater threat to human survival than climate change, Britain's chief medical officer has warned.