Australian Bernard Tomic was forced to withdraw from his first round match at the French Open after suffering a hamstring injury.