Instagram is to begin alerting parents if their teenager continuously searches for self-harm or suicide content on the platform.