Thermal conductivity of water: Molecular dynamics and generalized hydrodynamics results