Hamiltonian analysis of symmetries in a massive theory of gravity