Scheme to avoid tax on offshore billions may have been botched because money was managed from the UK, BBC learns.