Theoretical Investigations of the Water Cycle on Earth and Other Planets