Reinstatement and transformation of memory traces across development