A top European rights body ruled on Wednesday that France was in violation of a European treaty because it did not fully ban the smacking of children.