UK formally ends combat mission in Afghanistan