Gardaí on beat patrol observed defendant shouting at members of the public, telling them to f*** off', court heard