Beaver dams function as traps which delay the distribution of pollutants, improving the quality of downstream water, new research led by the University of Stirling has shown.