Human Rights Watch has said all sides in Somalia's conflict are guilty of serious violations of international law.