G20 countries reach deal on global tax