Ireland’s social divisions laid bare in election