Rotating Bose-Einstein condensates with a finite number of atoms confined in a ring potential: Spontaneous symmetry breaking, beyond the mean-field approximation