Time course of short-term memory depends on associative events