Living together before tying the knot is more likely to lead to divorce, a study shows