The dynamical evolution of dense star clusters in galactic nuclei