Homotopy theory of polyhedral products