Apple executive apologises for controversial diversity remark