Ericsson said it was working with mobile companies in Britain and Japan to restore full service to millions of customers hit by outages caused by a software glitch in the Swedish company’s equipment.