Former England defender Matthew Upson has agreed to join Leicester on a one-year contract after rejecting a new deal with Brighton.