Associahedra and weak monoidal structures on categories