Star cluster formation in cosmological simulations – III. Dynamical and chemical evolution