Business activity in the U.S., Europe and parts of Asia picked up in July, indicating that the global economy was growing at a modest pace before the fresh surge in energy prices.