Path integral formulation of noncommutative quantum mechanics