Hamburg district court says 29-year-old assailant of Kazakh origin mentally ill and suffering from religious delusions and therefore can't be held legally accountable for incident