Weakly-correlated synapses promote dimension reduction in deep neural networks