Cisco posts higher profit and revenue in Q2