British ministers are convinced the economy will emerge from Brexit negotiations in better shape than ever.