The p-adic Gross-Zagier formula and Iwasawa theory of elliptic curves