Heavy social media use had a negative impact on wellbeing, the study found.