The makers of Energizer and Duracell batteries have ended two lawsuits accusing each other of advertising false claims to consumers about battery life.