Bayern Munich have confirmed the signing of centre-back Dayot Upamecano from Bundesliga rivals RB Leipzig.