how memory works in a traumatic event