Over 24,000 trees have been planted along the banks of four south Wales rivers to help reduce nutrient pollution, improve water quality and help protect nature.