Smallholders farmers' attitudes and determinants of adaptation to climate risks in East Africa