As the West winds down its ‘war on terror,’ jihadists are filling the vacuum, UN warns