Conditional dissociation as a punishment mechanism in the evolution of cooperation