Influence Functions for Scalable Data Attribution in Diffusion Models