A five-year-old boy drowned in a swimming pool on a family holiday in Egypt, an inquest has heard.