A mixture of the tensor algebra and the infinite symmetric group and its application to the Schur--Weyl duality