The Emergence of Conventions in Online Social Networks