An eight-run defeat to Afghanistan continued a worrying downward trend in white-ball cricket.