Broken ergodicity and glassy behavior in a deterministic chaotic map