Thousands of Afghans have crossed the border from Pakistan, as the UN and Pakistani officials report that Islamabad is increasing pressure for their return.