VW to invest up to $5bn in Tesla rival Rivian Shares in the US-based electric truck and SUV maker jumped by almost 50% after the announcement.