Investigating single-molecule interactions and photodynamics in solution by counteracting Brownian motion