Multidimensional Yamada-Watanabe theorem and its applications to particle systems