International rugby player Adam Hastings has been banned from driving after being caught using a mobile phone and also speeding, a court heard.