UK PM's adviser quits amid backlash over comments on IQ, race