The role of capacity constraints in Convolutional Neural Networks for learning random versus natural data