A Statistical Model for Predicting Generalization in Few-Shot Classification