The New York Attorney General has opened an investigation into the hack at the world's largest hotel chain.