Optimal learning of high-dimensional classification problems using deep neural networks