Trial for doctor accused of groping child ends in mistrial