Better than expected sales results have pushed up Apple shares to record highs and the company's valuation to a trillion dollars