An ab initio study of TiC with the diffusion quantum Monte Carlo method