Distributed Learning from Interactions in Social Networks