Two men have denied attacking a man in Gourock before stealing a phone and cash from him.