Simulations of galaxy formation with radiative transfer: hydrogen reionization and radiative feedback