Spurs agree deal for Brazilian star Paulinho