Whitehall preparation for a hard Brexit