Six-time Olympic gold medalist Usain Bolt has withdrawn from the Jamaican national athletics championships, but says he still hopes to compete in the Rio Games.