Precision measurement of σ(e+e- → π+π-γ)/σ(e+e- → μ+μ-γ) and determination of the π+π- contribution to the muon anomaly with the KLOE detector