The ASX closed down on Wednesday as investors took advantage to take a profit following a record day of trading on Tuesday.