Porsche agreed to sell its stakes in the Bugatti-Rimac joint venture and the greater Rimac group to a consortium led by U.S.-based investment firm HOF Capital.