Real Madrid have announced the signing of Kylian Mbappé on a free transfer, ending their years-long wait for him to join the club.