Sunderland have signed Scotland midfielder Liam Bridcutt from Brighton on a three-and-a-half-year deal for an undisclosed fee.