Hasbro told Rhode Island workers they must transfer to its new Boston office or face termination by year’s end. The company notified the state that nearly 600 employees could be let go if they do not make the move.