Striker Paolo Guerrero scored a hat-trick as Peru crushed 10-man Venezuela 4-1 to take third place at the Copa América.