US-led coalition marks end of ‘longest war’ in Afghanistan