The uncertainty principle and foundations of quantum mechanics