Culturally based beliefs and labor market institutions