Uninstall Instagram and Facebook from your phone. Block them and other time-wasting sites on your computer. Start training yourself to not be distracted. This is what has worked best for me.
The quicker you distance yourself from social media the healthier you will be. There's literally everything to gain by leaving it behind.