Electroluminescence pulse shape and electron diffusion in liquid argon measured in a dual-phase TPC