Evaluation of ground-state entanglement in spin systems with the random phase approximation