British people are “not safe” and describing the country as underprepared for war is an “understatement”, a former Nato chief has warned parliament.