Learning Index Policies for Restless Bandits with Application to Maternal Healthcare