Statistical physics of deep learning: Optimal learning of a multi-layer perceptron near interpolation