The effect of democratic decision-making on investment in reputation