An exceptional harvest after good rains and food deliveries by aid agencies have ended famine in Somalia although conditions remain fragile and could worsen, the United Nations said on Friday.