Teen gunman planned assault, which left three teachers and student dead, for two years, authorities say; No motive known, but family says he received psychiatric treatment in past