Warning of ‘weak’ UK position, Brexit minister quits in blow to Britain’s May