On-demand delivery startup Deliv secures $40M in funding