The brain's ability to suppress such intrusive memories is contingent on obtaining restful sleep, scientists say