Voters in a South Korean city have rejected plans to build a nuclear power plant in a referendum the government says has no legal effect.