Gabriel Jesus scored the decisive penalty as Brazil defeated 10-man Paraguay 4-3 in a penalty shootout to reach the Copa America semi-finals.