The Welsh and UK governments have announced a new £1 million research fund to tackle water quality in the river Wye.