Gasoline sales to U.S. motorists rose by more than 5 percent in July compared with the same month a year before, according to the U.S.