Measurement of the dipion mass spectrum in X(3872)-> J/psi pi(+)pi(-) decays