Adviser to UK PM quits over 'unacceptable' views