Rainwater Harvesting and Groundwater Conservation: When Endogenous Heterogeneity Matters