A problem on partial sums in abelian groups