Study of the Dalitz decay ϕ→ηe+e- with the KLOE detector