Apple is world's most valuable company after iPhone frenzy drives record profits