Early-stopped neural networks are consistent