Tottenham and Real Madrid have confirmed that a deal has been completed for the transfer of Gareth Bale to the Spanish side for a world record fee.