Rapper Stormzy has been banned from driving for nine months after he was caught using a phone behind the wheel of a Rolls-Royce in west London, a court has heard.