Attacks by Brexiteers on civil servants are 'like pre-war Nazi Germany', says former head of civil service