History-dependent scalar conservation laws