Manipulating superconductivity of $1T$-TiTe$_2$ by high pressure