Student police officers in Birmingham chased down a rapist in the street after spotting him from a description of the attacker.