The president-elect’s potential levies add urgency for Hasbro to find new factories for its toys and games.