Regularity of weakly harmonic maps from a surface into a manifold with symmetries