If I have Ditto with "Transform" in play this turn, on my next turn can I put a Basic Pokemon from my hand on top of Ditto and then immediately evolve it into a Stage 1 or use Rare Candy to evolve it to Stage 2?
Yes, you can. Ditto says "Any cards attached to this Pokemon, damage counters, Special Conditions, turns in play, and any other effects remain on the new Pokemon"; so as long as Ditto has been in play for more than a turn it satisfies the evolutionary requirement, and the Basic Pokemon card placed on Ditto can be evolved or used with Rare Candy immediately.
Source: Boundaries Crossed FAQ (2012-11-08), TPCi Rules Team (2012-11-08)

Relevant cards

Note: All applicable cards may not be listed below.
BW7_108