Mock theta functions and quantum modular forms