Britain is preparing a customs, sales tax and excise regime that could operate if no deal is reached with the EU on its future trading relationships.