Psychologist testifies as defense seeks to spare synagogue attacker the death penalty for gunning down 11 worshippers in worst antisemitic attack in US history