The United Nations has declared famine in two regions of southern Somalia and said the situation could get worse.