Wendy’s plans to close up to 350 restaurants across the U.S. as it looks to cut underperforming locations and boost sales.