A "Birkhoff-Lewis" type result for a class of Hamiltonian systems