Origin of Water in the Terrestrial Planets: Insights from Meteorite Data and Planet Formation Models