Farmers cope with heavy rain and flooding