Connectivity and Consensus in Multi-Agent Systems with Uncertain Links