Rock around the clock: An agent-based model of low- and high-frequency trading