Robust Optimization over Networks Using Distributed Restarting of Accelerated Dynamics