Cavitation-controlled ultrasonic agitator