The role of uncertainty in resource dilemmas