Risk aversion can promote cooperation