China has warned the G7 leaders that the days when a "small" group of countries decided the fate of the world were long gone.