Social media companies have been encouraged to “behave responsibly” after MPs heard videos showing Harvey Willgoose receiving CPR were shared online.