Dynamical Primal-Dual Accelerated Method with Applications to Network Optimization