Israeli president says Iran's Ahmadinejad needs history lesson