Testing Closeness of Multivariate Distributions via Ramsey Theory