Learning and generalization of one-hidden-layer neural networks, going beyond standard Gaussian data