Method for producing titanium dioxide pigment using ultrasonic treatment