Rights group blasts UN, Pakistan over Afghan refugees