Doctor rules custody not an option for 69-year-old suspect, named by media as William M., who has long history of weapons offenses and has told investigators his motive was racist