Beam Selection for RIS-Enabled Terahertz Multi-User MIMO Systems via Multi-Task Learning