Ministers have faced criticism from MPs, farmers and conservationists for the abrupt closure of a flagship nature-friendly farming payments scheme.