The fitness-tracking gadget-maker has confirmed that it was the victim of a cyber-attack.