Deformations of homotopy theories via algebraic theories