Bifurcation of free vibrations for completely resonant wave equations