The United Nations has officially declared famine in parts of southern Somalia, describing the situation as starvation on a mass scale.