Florian Wirtz scored his first Premier League goal of the season as Liverpool beat struggling Crystal Palace 3-1 at Selhurst Park.