Hughes ton takes Australia to 247 in final ODI