Volkswagen and its top shareholder have prepared a preliminary agreement to list Porsche to boost the parent company's valuation and fund its push into EVs.