Hadron-quark phase transition in dense matter and neutron stars