Hasbro Inc. and Mattel Inc. have held talks about merging two of the world’s biggest toymakers, according to sources