Multiscale modeling of elastocapillary aggregation