WIMP and SIMP dark matter from the spontaneous breaking of a global group