Normative Modules: A Generative Agent Architecture for Learning Norms that Supports Multi-Agent Cooperation