A study on educational inequality has found postcodes and family income are still having an influence on success in the classroom.