Procedure Planning in Instructional Videos via Contextual Modeling and Model-based Policy Learning