Dynamics of elastocapillary rise