Quantum-mechanical model for continuous position measurements