Disrupting brain activity during rapid eye movement (REM) sleep can stop mice from forming new memories, a study suggests.