Resilient Cooperative Control of Networked Multi-Agent Systems