As thousands flee Afghanistan, refugees will need the support of communities to rebuild their lives and thrive