Gareth Bale scored against his former club as Real Madrid beat Tottenham 2-0 in the opening match of the Audi Cup.