On the regularity of weak solutions to nonlinear elliptic systems