Steve Hofmeyr apologises for LGBTIQ+ comments ahead of order of court