Information shared on social media is being regularly used in research projects without users’ consent, a study suggests.