Does a varying speed of light solve the cosmological problems?