Former Liverpool and Leicester City goalkeeper Danny Ward has completed an emotional return to his hometown club Wrexham.