Persistence of lower dimensional degenerate invariant tori with prescribed frequencies in Hamiltonian systems with small parameter