Cholesterol is the substance that helps hold the phospholipid layers of the cell membrane together while also reducing the viscosity of the membrane. It intersperses between the phospholipid molecules, providing stability and fluidity, which is crucial for membrane functionality. By preventing the fatty acid chains of phospholipids from packing too closely, cholesterol enhances membrane flexibility, allowing for better movement of proteins and lipids within the membrane.