Hundreds of thousands of Palestinians fled or were driven from their homes when Israel was created in 1948.