Relationship problems caused by social media are involved in nearly a third of divorce cases, lawyers claim.