DEGENERATE BIFURCATIONS OF RESONANT TORI IN HAMILTONIAN SYSTEMS