Five countries have been elected as non-permanent members of the UN Security Council following a vote in the General Assembly on Tuesday.