PSA-owned Opel is to invest in a German manufacturing facility in a move that will safeguard its long-term future.