Leicester City have confirmed the signing of Southampton midfielder Dean Hammond for an undisclosed fee on a two-year contract.