Farmers' agitation ends