The International Monetary Fund on Tuesday said forecasts for the global economy were “somewhat less dire” as wealthy countries and China rebounded more quickly than expected from coronavirus lockdowns.