Ulster sign Williams on two-year deal