Coping with weather adversity and adaptation to climatic variability: a cross-country study of smallholder farmers in South Asia