Consensus-type stochastic approximation algorithms