Distribution of soil moisture and groundwater levels at patch and catchment scales