Quantum discord in a spin system with symmetry breaking