SP, BSP divided society over caste: Shah