Inglis to retire from NRL at end of 2020