David Cameron visits troops in Afghanistan