COLD GAS ACCRETION BY HIGH-VELOCITY CLOUDS AND THEIR CONNECTION TO QSO ABSORPTION-LINE SYSTEMS