Advances in Multimodal Adaptation and Generalization: From Traditional Approaches to Foundation Models