Former Wigan Athletic and England defender Steven Caulker has announced his retirement from the game at the age of 33.