Religious identity, public goods and centralization