PepsiCo has agreed to end its practice of using labels containing lead-based ink on soft drink bottles sold in Mexico.