Teenagers who start using social media at a younger age are up to six months behind at school by their GCSE years, a new study suggests.