Magnetic properties of the anatase phase of TiO2