Magnetotransport Properties of a Nodal Line Semimetal TiSi