Peru president ousted after attempt to dissolve Congress