People in the southern Pacific French territory of New Caledonia have once more voted to stay with France, narrowly rejecting independence in a tightly-fought referendum.