Effect of elastocapillarity on the swelling kinetics of hydrogels