The U.S. remained a "flawed democracy" for the second straight year in 2017, the Economist Intelligence Unit said.