Diffusion social learning over weakly-connected graphs