Fragmented sleep 'harms memory'