Former Liverpool and Cameroon defender Joël Matip has formally declared his retirement from professional football at the age of 33.