Social learning in community structured graphs