IBM reported quarterly sales on Wednesday that fell from its year-ago results and missed Wall Street’s forecasts, but the company gave a more positive outlook for its future profits.