Obama cites voter frustration in midterm losses