Quantum resources: from mathematical foundations to operational characterisation