The US military has retreated from a base in Afghanistan’s remote Korengal Valley after spending over four years trying to hold the area.