Formation of planets by tidal downsizing of giant planet embryos