Shares end two-day rise as large-caps falter