Official: Ranocchia joins Inter