Brexit civil servant in charge of no-deal planning quits