Institutions, parasites and the persistence of in-group preferences