A Compton thick AGN in the barred spiral galaxy NGC 4785