Ecohydrology of groundwater-dependent ecosytems: 1. Stochastic water table dynamics