Padres’ Tatis has surgery to repair torn labrum