US president is in Afghanistan on his first trip as president to a country where tens of thousands of US troops are being deployed this year.