Picosecond hydrogen-bond formation in excited states: The case of an intramolecular charge-transfer (ICT) state