Near-infrared variability in dusty white dwarfs: tracing the accretion of planetary material