Provable Benefits of Unsupervised Pre-training and Transfer Learning via Single-Index Models