New York ranks 12th among best states to live in, WalletHub study finds