Alleged Montreal shooter followed conspiracy theorists, wrote manifesto weeks before attack