Local-global questions for divisibility in commutative algebraic groups