Starbucks’ fiscal second-quarter earnings and revenue fell short of analyst estimates, driven by a surprise decline in same-store sales.