From partners to populations: A hierarchical Bayesian account of coordination and convention