Polyelectrolyte bead model. I. Equilibrium