Australian shares end higher ahead of key inflation data