Stochastic Variational Approach to Quantum-Mechanical Few-Body Problems