Two sporting legends joined forces on the golf course as Lewis Hamilton and Tom Brady took part in a charity event ahead of the Miami Grand Prix.