Defender Fraser Kerr has completed a permanent switch to Motherwell after signing a two-year contract at Fir Park.