Polynomials which are locally reducible