UK's Cameron says leaving EU would increase risk of war