Taking photographs may wreck your memory: study