Alphonso Davies, who had been subject to interest from Real Madrid, has signed a new contract Bayern Munich, it has been announced.