Mayor apologises for calling staff ‘useless’ and ‘low-spec’