Porsche has sold its stake in the French hypercar manufacturer, putting it under Rimac's full control.