Dynamical generation of baryons at the electroweak transition