Dating apps and social media platforms which allow users to send unwanted nude pictures will face significant fines under new legislation.