Symmetry and the bifurcation of capillary-gravity waves