Former public schoolboy may not have known what he was doing when he killed three pensioners, court hears