The Dynamics of Collective Reputation