UN said on Friday that the famine in Somalia triggered by the worst drought in decades was over, but millions were still at risk.