Apple becomes &#8216;most valuable company of all time&#8217;