Cooperation enhances structural stability in mutualistic systems