Learning single-index models with shallow neural networks