Apple reports 'better than expected' earnings driven by iPhone sales