Energy firm EnBW Energie Baden-Württemberg has agreed to sell a 20% stake in a portfolio of 17 wind farms in Germany.