The US secretary of state says Nato risks becoming obsolete if it fails to defend Western values.