People in Scotland will be allowed to meet up with two other households indoors from 10 July and pubs and restaurants can re-open from 15 July.