Plans for student accommodation in a city centre have been thrown out over their proximity to late-night music venues.