Sound damping in glasses: Interplay between anharmonicities and elastic heterogeneities