Ankit Tiwari granted bail