PEARL: Prompting Large Language Models to Plan and Execute Actions Over Long Documents