Hardening of granular beds in rivers