EU 'will have to talk with Taliban' to prevent humanitarian crisis