Factors affecting the chemistry of precipitation and river water in an upland catchment