Former world number three Raonic hangs up his racket