Concentration effects and collective variables in dynamical systems on networks