Greens senator Dorinda Cox apologises for ‘shortcomings’ in office, defends handling of bullying complaints