BMW is to build a new manufacturing facility in Hungary, close to the town of Debrecen.