Phase-field model for elastocapillary flows of liquid crystals.