Correlated helix–coil transitions in polypeptides