The global stock market has reached unprecedented levels, buoyed by optimistic economic forecasts and strong corporate earnings.