Learning Generalizable Prompt for CLIP with Class Similarity Knowledge