The Gaia-ESO Survey: Extracting diffuse interstellar bands from cool star spectra: DIB-based interstellar medium line-of-sight structures at the kpc scale