Weak solutions of a conservation law with memory