Detection of entanglement with few local measurements