Hard Brexit could cost UK billions