Brain activity appears to continue in some cases after a person is declared dead, according to new research.