Daniel Williams, 30, was stopped by police in Abercynon and he was found with cocaine, cannabis and more than £4,000 in cash.