The share of Republicans who see the country headed in the right direction has fallen sharply in recent months.