Offensive historic tweets have thrown the awards campaign for the film Emilia Pérez into disarray.