Ulster tighthead prop Marty Moore has been forced to retire from rugby following medical advice to prioritise his mental wellbeing.