Theoretical aspects of legal regulation of financial activities of the state and municipalities