Liverpool FC have signed former West Ham goalkeeper Adrian following the departure of Simon Mignolet.