Singers Harry Styles, Zayn Malik, Niall Horan and Louis Tomlinson joined other guests at the private service in Buckinghamshire.