Farmers’ perception and adaptation to climate change