“Transformers: Rise of the Beasts,” in theaters Friday, repeats some of the franchise’s worst missteps without any of its previous pleasures.