Flash floods claim 40 lives in Afghanistan