Electronic structure of TiS2 and its electric transport properties under high pressure