West Ham have missed out on the signing of Brighton's Shane Duffy after the defender completed a season-long loan to Scottish champions Celtic.