Boosting Cross-lingual Transferability in Multilingual Models via In-Context Learning