Social group identity and the emergence of cooperation in resource conservation dilemmas