Robust consensus in social networks and coalitional games