The funeral of Australian batsman Phillip Hughes took place on Wednesday in his home town of Macksville, New South Wales.