Apple reports weaker revenue for a second straight quarter