Cavaliers, Ricky Rubio Agree to 3-Year Deal