A Hölder continuity result for a class of obstacle problems under non standard growth conditions