Dark energy with zero pressure: Accelerated expansion and large scale structure in action-dependent Lagrangian theories