Density estimation in RKHS with application to Korobov spaces in high dimensions