Regularity results for a class of non-autonomous obstacle problems with (p,q)-growth