Who to punish? Individual decisions and majority rule in mitigating the free rider problem