Shares ended lower due to sell-off in bank stocks