From morality to rules to choices: introducing and testing a new theory on how morals influence cooperation