The European Commission opened an investigation into Snapchat and warned four pornographic platforms they could face penalties for failing to follow child safety laws.