Social media companies have agreed to block people smugglers from posting adverts for channel crossings on their platforms.