Sixth seed Jo-Wilfried Tsonga retired from his Wimbledon second-round match against Latvia's Ernests Gulbis with a knee injury.