Borsa Istanbul closes year at record high