Renormalization of multidimensional Hamiltonian flows