Symmetry restoration in mean-field approaches