Representation and statistical properties of deep neural networks on structured data