Afghans have fled to Pakistan over the past four decades to escape war, political instability and economic hardship in their homeland.