Measurement of the γγ*→ηc transition form factor