Top US general visits troops in Afghanistan