Investors sent mining company share prices sharply higher on Tuesday, helping to blunt losses by the big banks and retailers.