Hard limits to cognitive flexibility: ants can learn to ignore but not avoid pheromone trails