US authorities said they had arrested and charged a 25-year-old man over an alleged attempt to launch a New Year's Eve attack in Rochester, New York in the name of the Islamic State group.