How does intermolecular force affect the capillary action of a substance