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