Tens of thousands of Afghans have been displaced by recent fighting along the Pakistan border, forced into tent camps.