Starbucks’ revenue fell 1% in the April-June period as customer traffic weakened in the US and China.