Man given anti-social behaviour injunction after upsetting neighbours