Decisions and disease: a mechanism for the evolution of cooperation