Local-global divisibility of rational points in some commutative algebraic groups