Structure and Magnetism of Pure and Co-Doped TiO$_{2}$ Clusters