Apple closed with a market capitalization exceeding $5 trillion