Defeated leftist declares self ‘legitimate president’ of Mexico