Specific retention is the fraction of water retained in soil or rock after gravitational drainage.
This retained water is held mainly by capillary and molecular forces.
Hence,
\[
\boxed{\text{Capillary forces}}
\]
is the correct answer.
Therefore,
\[
\boxed{(B)}
\]