The seven deadly sins were not just moral transgressions. They were survival tools with an evolutionary basis and advantage. A new book explains how they shape our lives today