Toy-making giant Hasbro has confirmed a cyber attack, leading to some systems being taken offline as it investigates.