European politicians have voted against imposing traffic-light nutrition labels on foodstuffs sold across the EU.