Schools must create welcoming and “inclusive” spaces for pupils to tackle the country’s absence epidemic, the Education Secretary has said.