Nearly 260,000 people died during the famine that hit Somalia from 2010 to 2012, a study shows.