Longtime president is sworn in at inauguration ceremony after disputed election