A project studying fish behaviour in Welsh waters, including the River Wye, has been awarded £657,000.