Former Ulster rugby player Chris Farrell has been sentenced to four years in prison after a court found he failed to prevent the rape of a woman in France in 2017.