Generalization Bounds for Few-Shot Transfer Learning with Pretrained Classifiers