Controlled multiple quantum coherences of nuclear spins in a nanometre-scale device