California shooter stopped going to mosque weeks ago