On the linear stability of solitary waves in Hamiltonian systems with symmetry