Measurement of the CP-violating phase beta in B-0 -> J/psi pi(+)pi(-) decays and limits on penguin effects