The semiconductor giant’s chief executive, Pat Gelsinger, said the shortage will last longer than expected as the company reported a decrease in quarterly sales.