Top US general in Afghanistan relinquishes command