Fulham have completed the signing of West Ham centre-back Issa Diop in a deal worth around £15million.