Which primary function do wetlands perform by temporarily storing excess stormwater and releasing it slowly downstream?