Frequency and wave-vector dependent dielectric function of water: Collective modes and relaxation spectra