Two thirds of prisoners feel unsafe and Muslim inmates accuse staff of treating them inequitably, Chief Prisons Inspector’s report says