On groups elementarily equivalent to a group of triangular matrices $T_n(R)$